package com.treasure.mall.biz.service.core.live;

import com.treasure.mall.biz.base.SearchableCrudService;
import com.treasure.mall.biz.entity.live.LiveRoomVideoPO;
import com.treasure.mall.biz.vo.live.LiveRoomVideoVO;

/**
 *
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.service.core.live
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/9/11 11:37 上午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
public interface LiveRoomVideoService extends SearchableCrudService<LiveRoomVideoPO, Long> {
    void resetPushed(Long roomId);

    /**
     * 推送视频播放
     *
     * @param id
     */
    void push(Long id);

    /**
     * 关闭播放的视频
     *
     * @param id
     */
    void close(Long id);

    /**
     * 获取最后一条推送视频数据
     *
     * @param roomId
     * @return
     */
    LiveRoomVideoVO findLastByRoomId(Long roomId);
}
